package com.sample.tdf.dto;

import cn.com.taiji.common.dto.BaseDTO;
import cn.com.taiji.common.util.CommonJpaQueryWord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;

/**
 * 员工DTO
 */
@ApiModel(value = "员工DTO")
@Data
@NoArgsConstructor
public class EmployeeDTO extends BaseDTO {
    private static final long serialVersionUID = 2555428876699L;

    @ApiModelProperty(value = "员工姓名")
    @Size(min = 1, max = 20, message = "员工姓名长度只能在1-20之间")
    private String name;

    @ApiModelProperty(value = "员工岗位")
    @Size(min = 1, max = 50, message = "员工岗位长度只能在1-50之间")
    private String position;

    @ApiModelProperty(value = "员工性别")
    private String sex;

    @ApiModelProperty(value = "员工年龄")
    private String age;
}
